package com.xy.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "t_book")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
public class Book {
    @Id
    private Integer id;
    @Column(name = "book_name")
    private String name;
    private String author;
    private Float price;
//    @Autowired
//    private Press press;
}
